//
//  RSCommonHeaderFooterView.m
//  RenShineDoctor
//
//  Created by 黄强强 on 16/2/14.
//  Copyright © 2016年 杭州岐黄信息技术有限公司. All rights reserved.
//

#import "HQQSettingHeaderFooterView.h"
#import <HQQCommonTools.h>

@interface HQQSettingHeaderFooterView ()
@end

@implementation HQQSettingHeaderFooterView

+ (instancetype)headerFooterViewWithTableView:(UITableView *)tableView
{
//    NSString *headerFooterID = @"headerFooterID";
//    RSCommonHeaderFooterView *view = [tableView dequeueReusableHeaderFooterViewWithIdentifier:headerFooterID];
//    if (!view) {
//        view = [[RSCommonHeaderFooterView alloc] initWithReuseIdentifier:headerFooterID];
//    }
//    return view;
    return [[self alloc] init];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        
        UILabel *titleLabel = [[UILabel alloc] init];
        titleLabel.font = [UIFont systemFontOfSize:13];
        titleLabel.textColor = [UIColor grayColor];
        titleLabel.textAlignment = NSTextAlignmentLeft;
        [self addSubview:titleLabel];
        self.titleLabel = titleLabel;
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.titleLabel.hqq_x = 15;
    self.titleLabel.hqq_width = self.hqq_width - 2 * self.textLabel.hqq_x;
    self.titleLabel.hqq_height = self.hqq_height;
}

@end
